Carbon


CopyPixMap

Header: Quickdraw.h Carbon status: Supported

Duplicates a PixMap structure.

void CopyPixMap (
    PixMapHandle srcPM, 
    PixMapHandle dstPM
);
srcPM

A handle to the PixMap structure to be copied.

dstPM

On return, a handle to the duplicated PixMap structure.

DISCUSSION

Typically, you do not need to call this function in your application code, because the CopyPixMap function copies the contents of the source PixMap structure to the destination PixMap structure. The contents of the color table are copied, so the destination PixMap has its own copy of the color table. Because the baseAddr field of the PixMap structure is a pointer, the pointer, but not the image itself, is copied.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)